<template>
    <div id="test">
        <h2>测试Vue2脚手架</h2>
        <span>{{name}}</span>
        <button @click="fn">点我测试</button>
    </div>
</template>

<script>
    export default {
        name: 'StudentT',
        data() {
            return {
                name: 'Vue2测试'
            }
        }, methods: {
            fn() {
                alert('Vue2脚手架'); 

            }
        }

    }
</script>

<style>
    #test {
        background-color: orange;
    }
</style>